.class Lcom/htc/android/footprints/activity/ListModeNewActivity$12;
.super Ljava/lang/Thread;
.source "ListModeNewActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/ListModeNewActivity;->onActivityResult(IILandroid/content/Intent;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/ListModeNewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 988
    iput-object p1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    const-string v3, ","

    .line 989
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 990
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, ".kmz"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 992
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->length()J

    move-result-wide v1

    invoke-static {v0, v1, v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->isStorageEnough(Landroid/content/Context;J)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 995
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v1

    #calls: Lcom/htc/android/footprints/activity/ListModeNewActivity;->advancedImportKMZ(Ljava/io/File;)V
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1700(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/io/File;)V

    .line 1009
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->dismissDialog(I)V

    .line 1010
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mFilter:Landroid/widget/Filter;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/Filter;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$800(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ","

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->mSearchInput:Landroid/widget/TextView;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$900(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ","

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sortBy:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$400(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 1012
    return-void

    .line 997
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, ".kml"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 999
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->isStorageEnough(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1001
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v1

    #calls: Lcom/htc/android/footprints/activity/ListModeNewActivity;->advancedImportKML(Ljava/io/File;)V
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1800(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/io/File;)V

    goto :goto_0

    .line 1002
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, ".jpg"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1004
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->isStorageEnough(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1006
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ListModeNewActivity$12;->this$0:Lcom/htc/android/footprints/activity/ListModeNewActivity;

    #getter for: Lcom/htc/android/footprints/activity/ListModeNewActivity;->sourceFile:Ljava/io/File;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1600(Lcom/htc/android/footprints/activity/ListModeNewActivity;)Ljava/io/File;

    move-result-object v1

    #calls: Lcom/htc/android/footprints/activity/ListModeNewActivity;->doPickPhotoAction(Ljava/io/File;)V
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/ListModeNewActivity;->access$1900(Lcom/htc/android/footprints/activity/ListModeNewActivity;Ljava/io/File;)V

    goto/16 :goto_0
.end method
